package com.yand.serviceimpl.business.classlog;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yand.api.entity.business.classtime.THfClassLog;
import com.yand.api.service.business.classtime.ClassLogService;
import com.yand.mapper.business.classtime.THfClassLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 上课记录业务逻辑类
 */
@Service
public class ClassLogServiceImpl implements ClassLogService {

    @Autowired
    private THfClassLogMapper classLogMapper;



    @Override
    public PageInfo<THfClassLog> queryClassLogList(THfClassLog classLog) {

        PageHelper.startPage(classLog.getPageNum(), classLog.getPageSize());

        return PageInfo.of(classLogMapper.queryAllClassLogList(classLog));
    }

    @Override
    public void insertClassLog(THfClassLog classLog) {
        classLogMapper.insertSelective(classLog);
    }
}
